package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HocVien_DonXinXetMienGiam")
public class Tbl_QLDTTXA_HocVien_DonXinXetMienGiam implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_HocVien hocVienId = null;
   private Date ngayNop;
   private Integer tongSoMon;
   private Boolean tronGoi;
   private Double tongTienDong;
   private String soBienLai;
   private String nguoiThu;
   private Integer trangThaiId;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="hocVienId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocVien_tbl_QLDTTXA_HocVien_DonXinXetMienGiam")
   public Tbl_QLDTTXA_HocVien getHocVienId() {
	    return hocVienId;
   }
   public void setHocVienId(Tbl_QLDTTXA_HocVien hocVienId) {
	    this.hocVienId=hocVienId;
   }

   public Date getNgayNop() {
   	return ngayNop;
   }
   public void setNgayNop(Date ngayNop) {
   	this.ngayNop= ngayNop;
   }

   public Integer getTongSoMon() {
   	return tongSoMon;
   }
   public void setTongSoMon(Integer tongSoMon) {
   	this.tongSoMon= tongSoMon;
   }

   public Boolean getTronGoi() {
   	return tronGoi;
   }
   public void setTronGoi(Boolean tronGoi) {
   	this.tronGoi= tronGoi;
   }

   public Double getTongTienDong() {
   	return tongTienDong;
   }
   public void setTongTienDong(Double tongTienDong) {
   	this.tongTienDong= tongTienDong;
   }

   public String getSoBienLai() {
   	return soBienLai;
   }
   public void setSoBienLai(String soBienLai) {
   	this.soBienLai= soBienLai;
   }

   public String getNguoiThu() {
   	return nguoiThu;
   }
   public void setNguoiThu(String nguoiThu) {
   	this.nguoiThu= nguoiThu;
   }

   public Integer getTrangThaiId() {
   	return trangThaiId;
   }
   public void setTrangThaiId(Integer trangThaiId) {
   	this.trangThaiId= trangThaiId;
   }
}//endClass 

